package com.gcxy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gcxy.constant.StringConst;
import com.gcxy.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 学期信息
 * </p>
 *
 * @author Huang先森
 * @since 2024-07-22
 */
@Getter
@Setter
@ApiModel(value = "Semester对象", description = "学期信息")
public class Semester implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学期名称")
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("学期开始时间")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("学期结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("开始周")
    private Integer startWeek;

    @ApiModelProperty("学年")
    private String schoolYear;


    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = StringConst.YYYY_MM_DD)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = StringConst.YYYY_MM_DD)
    private LocalDateTime updateTime;

    @ApiModelProperty("更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updater;


}
